package com.k2data.k2app.rest;

import com.k2data.k2app.rest.domain.CombineParams;
import com.k2data.k2app.rest.domain.CombineRest;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author lidong9144@163.com 17-6-15.
 */
@Component
@FeignClient(value = "K2ALPHA-STATIC-V1", fallback = StaticClientFallback.class)
public interface StaticClient {

    @RequestMapping(method = RequestMethod.POST, value = "/statics/combine")
    CombineRest combine(@RequestBody CombineParams combineParams);

}
